package com.fang.common.dto.result;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * {
 *             name: 'SysManga',
 *             title: '系统管理',
 *             icon: 'el-icon-s-operation',
 *             path: '',
 *             component: '',
 *             children: [
 *                 {
 *                     name: 'SysUser',
 *                     title: '用户管理',
 *                     icon: 'el-icon-s-custom',
 *                     path: '/sys/users',
 *                     children: []
 *                 },
 *                 {
 *                     name: 'SysRole',
 *                     title: '角色管理',
 *                     icon: 'el-icon-rank',
 *                     path: '/sys/roles',
 *                     children: []
 *                 },
 *                 {
 *                     name: 'SysMenu',
 *                     title: '菜单管理',
 *                     icon: 'el-icon-menu',
 *                     path: '/sys/menus',
 *                     children: []
 *                 }
 *             ]
 *         },
 * @author Fang Ruichuan
 * @date 2022-09-06 21:39
 */
@Data
@Builder
@ApiModel("菜单出参")
public class SysMenuResult implements Serializable {
    @ApiModelProperty("菜单ID")
    private String id;
    @ApiModelProperty("名称")
    private String name;
    @ApiModelProperty("标题")
    private String title;
    @ApiModelProperty("图标")
    private String icon;
    @ApiModelProperty("路由")
    private String path;
    @ApiModelProperty("组件")
    private String component;
    @ApiModelProperty("子菜单")
    private List<SysMenuResult> children;
}
